﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/MenuMaster.Master" AutoEventWireup="true"
    CodeBehind="AddDynamicContent.aspx.cs" Inherits="Department.admin.Content.AddDynamicContent" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .cal_Theme1 .ajax__calendar_container
        {
            background-color: #e2e2e2;
            border: solid 1px #cccccc;
        }
        
        .cal_Theme1 .ajax__calendar_header
        {
            background-color: #ffffff;
            margin-bottom: 4px;
        }
        
        .cal_Theme1 .ajax__calendar_title, .cal_Theme1 .ajax__calendar_next, .cal_Theme1 .ajax__calendar_prev
        {
            color: #004080;
            padding-top: 3px;
        }
        
        .cal_Theme1 .ajax__calendar_body
        {
            background-color: #e9e9e9;
            border: solid 1px #cccccc;
        }
        
        .cal_Theme1 .ajax__calendar_dayname
        {
            text-align: center;
            font-weight: bold;
            margin-bottom: 4px;
            margin-top: 2px;
        }
        
        .cal_Theme1 .ajax__calendar_day
        {
            text-align: center;
        }
        
        .cal_Theme1 .ajax__calendar_hover .ajax__calendar_day, .cal_Theme1 .ajax__calendar_hover .ajax__calendar_month, .cal_Theme1 .ajax__calendar_hover .ajax__calendar_year, .cal_Theme1 .ajax__calendar_active
        {
            color: #004080;
            font-weight: bold;
            background-color: #ffffff;
        }
        
        .cal_Theme1 .ajax__calendar_today
        {
            font-weight: bold;
        }
        
        .cal_Theme1 .ajax__calendar_other, .cal_Theme1 .ajax__calendar_hover .ajax__calendar_today, .cal_Theme1 .ajax__calendar_hover .ajax__calendar_title
        {
            color: #bbbbbb;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="page-heading">
        <h1>
            Добавяне на динамично съдържание</h1>
    </div>
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized">
                <img src="../images/shared/side_shadowleft.jpg" width="20" height="300" alt="" />
            </th>
            <th class="topleft">
            </th>
            <td id="tbl-border-top">
                &nbsp;
            </td>
            <th class="topright">
            </th>
            <th rowspan="3" class="sized">
                <img src="../images/shared/side_shadowright.jpg" width="20" height="300" alt="" />
            </th>
        </tr>
        <tr>
            <td id="tbl-border-left">
            </td>
            <td>
                <!--  start content-table-inner -->
                <div id="content-table-inner">
                    <table border="0" width="100%" cellpadding="0" cellspacing="0">
                        <tr valign="top">
                            <td>
                                <!--  start step-holder -->
                                <!--  end step-holder -->
                                <!-- start id-form -->
                                <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                                    <tr>
                                        <th valign="top">
                                            Име:
                                        </th>
                                        <td class="style2">
                                            <asp:TextBox ID="TextBoxHeading" runat="server" CssClass="inp-form" Width="189px" />
                                            <asp:RegularExpressionValidator ID="regExValidator" ControlToValidate="TextBoxHeading"
                                                ValidationExpression="[a-zA-Zа-яА-Я0-9._\s]+" ErrorMessage="Използвате непозволени символи!"
                                                runat="server" />
                                            <asp:RequiredFieldValidator ID="rqFieldValidator" ControlToValidate="TextBoxHeading"
                                                ErrorMessage="Полето е задължително!" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top">
                                            Дата:
                                        </th>
                                        <td>
                                            <asp:TextBox ID="TextBoxDate" runat="server" CssClass="inp-form" Width="189px" />
                                            
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationExpression="(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d"
                                              ErrorMessage="Въвели сте грешна дата."  ControlToValidate="TextBoxDate"></asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top">
                                            Вид съдържание:
                                        </th>
                                        <td class="style2">
                                            <asp:DropDownList ID="typeIDDropDownList" runat="server" DataSourceID="SqlDataSourceTypeID"
                                                DataTextField="Name" DataValueField="ID">
                                            </asp:DropDownList>
                                            <asp:SqlDataSource ID="SqlDataSourceTypeID" runat="server" ConnectionString="<%$ ConnectionStrings:DepartmentConnectionString %>"
                                                SelectCommand="SELECT [ID], [Name] FROM [Type]"></asp:SqlDataSource>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top">
                                            Текст:
                                        </th>
                                        <td class="style2">
                                            <CKEditor:CKEditorControl ID="TextBoxText" runat="server" Height="275px" Width="752px">
		
                                            </CKEditor:CKEditorControl>
                                        </td>
                                        <td class="style1">
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                            Файл 1:
                                        </th>
                                        <td class="style2">
                                            <asp:FileUpload ID="FileUploadControl" runat="server" />
                                        </td>
                                        <td class="style1">
                                            <div class="bubble-left">
                                            </div>
                                            <div class="bubble-inner">
                                                10MB max per file</div>
                                            <div class="bubble-right">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                            Файл 2:
                                        </th>
                                        <td class="style2">
                                            <asp:FileUpload ID="FileUploadControl2" runat="server" />
                                        </td>
                                        <td class="style1">
                                            <div class="bubble-left">
                                            </div>
                                            <div class="bubble-inner">
                                                10MB max per file</div>
                                            <div class="bubble-right">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                            Файл 3:
                                        </th>
                                        <td class="style2">
                                            <asp:FileUpload ID="FileUploadControl3" runat="server" />
                                        </td>
                                        <td class="style1">
                                            <div class="bubble-left">
                                            </div>
                                            <div class="bubble-inner">
                                                10MB max per file</div>
                                            <div class="bubble-right">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                            &nbsp;
                                        </th>
                                        <td valign="top" class="style2">
                                            <asp:Button ID="ButtonSave" runat="server" Text="Button" CssClass="form-submit" OnClick="ButtonSave_Click" />
                                            <asp:Button ID="ButtonReset" runat="server" Text="Button" CssClass="form-reset" OnClick="ButtonReset_Click" />
                                        </td>
                                        <td class="style1">
                                        </td>
                                    </tr>
                                </table>
                                <!-- end id-form  -->
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <img src="../images/shared/blank.gif" width="695" height="1" alt="blank" />
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                    <div class="clear">
                    </div>
                </div>
                <!--  end content-table-inner  -->
            </td>
            <td id="tbl-border-right">
            </td>
        </tr>
        <tr>
            <th class="sized bottomleft">
            </th>
            <td id="tbl-border-bottom">
                &nbsp;
            </td>
            <th class="sized bottomright">
            </th>
        </tr>
    </table>
</asp:Content>
